package org.example.vo;

import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

@Data
@EqualsAndHashCode(callSuper = false)
@NoArgsConstructor
@JsonInclude(value = JsonInclude.Include.NON_NULL)
public class ResultVo<T> {


    private int code = 0;
    /**
     * msg 国际化
     */
    private String msg;

    private T data;

    public ResultVo(T data) {
        this.data = data;
    }
}
